package org.example.wx_springboot.service;


import org.example.wx_springboot.controller.request.BaseRequest;
import org.example.wx_springboot.controller.request.CommodityPageRequest;
import org.example.wx_springboot.entity.Commodity;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommodityService {

    List<Commodity> list();// 3、查询所有的对象

    void save(Commodity commodity);

    PageInfo<Commodity> page(BaseRequest baseRequest);

    Commodity getById(Integer id);
}
